/**********************************************
 * 
 * File Name				:	CheckboxColumnWrapper.java
 * 
 * Last Changed Date		: 	$Date: 2009-08-01 11:12:53 +0800 (星期六, 01 八月 2009) $
 * 
 * Last Changed Revision	:	$Revision: 86 $
 * 
 * Last Changed Author		:	$Author: cfanboy $
 * 
 * File Header URL			:	$HeadURL: svn://www.svnhost.cn/Busi-Building/code/branch/src/com/busibuilding/common/displaytag/CheckboxColumnDecorator.java $
 * 
 * ********************************************
 */

package com.busibuilding.common.displaytag;

import javax.servlet.jsp.PageContext;

import org.displaytag.decorator.DisplaytagColumnDecorator;
import org.displaytag.exception.DecoratorException;
import org.displaytag.properties.MediaTypeEnum;

/**
 * Class Name: CheckboxColumnWrapper
 * Description: 
 * @author YU Zhipeng
 * @version 1.0
 * @since 1.0
 * Date: 2009-7-28
 */

public class CheckboxColumnDecorator implements DisplaytagColumnDecorator{

	@Override
	public Object decorate(Object columnValue, PageContext pageContext,
			MediaTypeEnum media) throws DecoratorException {
		
		return "<input name=\"chkSelected\" type=\"checkbox\" value=\"" + columnValue + "\" />";
	}

}
